package com.gaotu.ci.news;

import com.gaotu.ci.support.BasedEntity;
import lombok.Data;

import java.util.Date;

@Data
public class BadEntity extends BasedEntity {
    private static final String cacheVersion = "v1";

    private Boolean isOK = true;

    private Integer id = 1;

    public String name;

    protected Date createAt;

    public String getCacheKey(BadEntity badEntity){
        return "news:" + badEntity.cacheVersion + badEntity.getId();
    }
}
